package com.hwg.shiliupro.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hwg.shiliupro.po.UserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserRoleMapper extends BaseMapper<UserRole> {
    /**
     * 通过用户的uId查询用户--角色表信息
     *
     * @param uId 用户id
     * @return {@link }
     */
    @Select("select * from tb_user_role where u_id = #{uId}")
    public List<UserRole> selectRoleByUid(Integer uId);
}
